﻿<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="utf-8">
	    <title>@ViewContext.Controller.ViewBag.SiteTitle | @ViewBag.Title</title>
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
	    <meta name="description" content="@ViewContext.Controller.ViewBag.SiteTitle | @ViewBag.Title">
        <meta name="author" content="Codegusto">
        <link rel="shortcut icon" href="../Content/ico/favicon.png">


        <!-- Le styles -->
        <link href="@Url.Content("~/Content/bootstrap.min.css")" rel="stylesheet">
        <style type="text/css">
          body {
            padding-top: 60px;
            padding-bottom: 40px;
          }
          .sidebar-nav {
            padding: 9px 0;
          } 

          @ViewBag.Styles

        </style>
        
        <link href="@Url.Content("~/Content/bootstrap-responsive.min.css")" rel="stylesheet">

        <!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
        <!--[if lt IE 9]>
          <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
        <![endif]-->
    </head>

    <body>

        <div class="navbar navbar-inverse navbar-fixed-top">
          <div class="navbar-inner">
            <div class="container-fluid">
              <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
              </a>
              @Html.ActionLink("Friendly URL", "Index", "Home", null, new { @class = "brand" })
              <div class="nav-collapse collapse">
                <p class="navbar-text pull-right">
                  @Html.Partial("_LogOnPartial")
                </p>
                <ul class="nav">
                  <li class="active">@Html.ActionLink("Home", "Index", "Home")</li>
@*                  <li><a href="#about">About</a></li>
                  <li><a href="#contact">Contact</a></li>*@
                </ul>
              </div><!--/.nav-collapse -->
            </div>
          </div>
        </div>

        <div class="container-fluid">
          <div class="row-fluid">
            <div class="span12">

                <!-- body of the pages should start with section class="content" -->      
                @RenderBody()

            </div><!--/span-->
          </div><!--/row-->

          <hr>

          <footer>
            <p>&copy; Codegusto 2012</p>
          </footer>

        </div><!--/.fluid-container-->

        <!-- Javascript
        ================================================== -->
        <!-- Placed at the end of the document so the pages load faster -->
        <script type="text/javascript" src="http://code.jquery.com/jquery-latest.js"></script>
        <script type="text/javascript" src="@Url.Content("~/Scripts/bootstrap.min.js")"></script>
        <script type="text/javascript" src="@Url.Content("~/Scripts/css3-mediaqueries.js")"></script>
        <script type="text/javascript" src="@Url.Content("~/Scripts/jquery.validate.min.js")"></script>
        <script type="text/javascript" src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")"></script>

        @RenderSection("scripts",false)   

        @if (!string.IsNullOrWhiteSpace(@ViewContext.Controller.ViewBag.GoogleAnalyticsAccount))
        {
            <script type="text/javascript">
                var _gaq = _gaq || [];
                _gaq.push(['_setAccount', '@ViewContext.Controller.ViewBag.GoogleAnalyticsAccount']);
                _gaq.push(['_trackPageview']);

                (function () {
                    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
                    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
                    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
                })();

            </script>
        }
    </body>
</html>
